<?php
$upload = str_replace("admin", "", $_SERVER['DOCUMENT_ROOT']) . "upload/";
$domain = 'http://' . $_SERVER['SERVER_NAME'] . '/';
?>